home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-13 | 1.7 KB | 71 lines | [TEXT/MPS ] |
- ; Version: 2.64
- ; Created: Saturday, September 16, 1989 at 4:29:05 PM
- ;
- ; File: PaletteEqu.a
- ;
- ; Assembler Interface to the Macintosh Libraries
- ; Copyright Apple Computer, Inc. 1987-1988
- ; All Rights Reserved
- ;
- ;___________________________________________________________________________
-
- ; Palette Manager equates
-
- ; Usage constants
- pmCourteous EQU $0000
- pmDithered EQU $0001
- pmTolerant EQU $0002
- pmAnimated EQU $0004
- pmExplicit EQU $0008
- pmInhibitG2 EQU $0100
- pmInhibitC2 EQU $0200
- pmInhibitG4 EQU $0400
- pmInhibitC4 EQU $0800
- pmInhibitG8 EQU $1000
- pmInhibitC8 EQU $2000
-
- ; ColorInfo structure
-
- ciRGB EQU $0000 ; RGBColor [short] * 3
- ciUsage EQU $0006 ; usage [short]
- ciTolerance EQU $0008 ; tolerance value [short]
- ciFlags EQU $000A ; private [short]
- ciPrivate EQU $000C ; private [long]
- ciSize EQU $0010 ; size of the ColorInfo data structure
-
- ; Palette structure
-
- pmEntries EQU $0000 ; entries in pmTable [short]
- pmWindow EQU $0002 ; parent window [long]
- pmPrivate EQU $0006 ; private [short]
- pmDevices EQU $0008 ; private [long]
- pmSeeds EQU $000C ; private [long]
- pmInfo EQU $0010 ; ColorInfo's [ciSize] * pmEntries
- pmHdrSize EQU $0010 ; size of Palette header
- ; Palette resource structure
- ;
- plttEntries EQU $0000 ; entries in palette resource [short]
- plltUpdates EQU $0002 ; value passed to SetPalette [short]
- _PMgrDispatch OPWORD $AAA2
-
- MACRO
- _Entry2Index
- MOVEQ #0,D0
- _PMgrDispatch
- ENDM
-
-
- MACRO
- _RestoreDeviceClut
- MOVEQ #2,D0
- _PMgrDispatch
- ENDM
-
-
- MACRO
- _ResizePalette
- MOVEQ #3,D0
- _PMgrDispatch
- ENDM
-
-